import request from '../../flow-request';
import { AxiosResponse } from 'axios';
import { ResponseData } from '@/types/api/public';
import { TableList,EditData,InnerFormInput } from '@/types/api/workflow/flowTaskFinish';

type ConfigType<T=ResponseData> = Promise<AxiosResponse<T>>

/**
 * 获取数据
 * @param params 参数
 * @returns 分页数据
 */
export const getData =(params:any):ConfigType<TableList> =>{
    params.pageable={};
    params.pageable.PageNo=params.current;
    params.pageable.PageSize=params.pageSize;
    const data= JSON.stringify(params);
    return request({
        url:'/Api/v1/history/process-instances/tasks/getHistoryTasks',
        method:'post',
        data,
        headers: {
            'Content-Type': 'application/json-patch+json'
        }
    })
}
